package com.example.testcomposeproject

/**
 * @author: hemin
 * @date: 2024/9/19
 * @Desc:
 */

fun main() {
    val str: String = "abv"  // 或者是任何字符串
    val result: Int = str.toIntOrNull() ?: 1
    println(result)
}



fun add(a:Int,b:Int):Int{
    return a+b
}

var a=1
fun sideAdd(){
     a++
    val b=2
    val c=a+b
    println(c)
}